package qdu.my.ch1_intent_path.util;

import qdu.my.ch1_intent_path.R;
import android.net.Uri;
import android.widget.TextView;

public class ExtractURIinfo {

	public static void getURIdata(Uri uridata, TextView textView) {
		int port = uridata.getPort();
		String msg = uridata.getQueryParameter("message");
		if(msg == null)
			msg = "无URI参数";
		textView.setText("端口号："+port+"\n URI 参数为：" + msg);
	}
}
